package com.bocloud.kong.model.consumers;

import java.util.List;

import com.alibaba.fastjson.JSONObject;
import com.bocloud.kong.model.BaseModel;
import com.fasterxml.jackson.annotation.JsonInclude;

/**
 * Title: OAuth2 Description: 用户获取的 OAuth2 对象
 *
 * @author lkx
 * @version 1.0.0
 * @since 2017-02-15 17:51
 */
@JsonInclude(JsonInclude.Include.NON_NULL)
public class OAuth2 extends BaseModel {
	private static final long serialVersionUID = 2701274499207198826L;

	private String consumer_id;

	private String id;

	private String name;

	private String client_id;

	private String client_secret;

	private List<String> redirect_uri;

	private Long created_at;

	private Integer size;

	@Override
	public String toString() {
		return JSONObject.toJSONString(this);
	}

	public String getConsumer_id() {
		return consumer_id;
	}

	public void setConsumer_id(String consumer_id) {
		this.consumer_id = consumer_id;
	}

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getClient_id() {
		return client_id;
	}

	public void setClient_id(String client_id) {
		this.client_id = client_id;
	}

	public String getClient_secret() {
		return client_secret;
	}

	public void setClient_secret(String client_secret) {
		this.client_secret = client_secret;
	}

	public List<String> getRedirect_uri() {
		return redirect_uri;
	}

	public void setRedirect_uri(List<String> redirect_uri) {
		this.redirect_uri = redirect_uri;
	}

	public Long getCreated_at() {
		return created_at;
	}

	public void setCreated_at(Long created_at) {
		this.created_at = created_at;
	}

	public Integer getSize() {
		return size;
	}

	public void setSize(Integer size) {
		this.size = size;
	}

}
